<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
    <link rel="stylesheet" href="../../layuiadmin/style/step.css" media="all">
    <style>
        .layui-form-item{
            width: 50% !important;
            float: left;
            margin-right: 0px;
            clear: none;
        }
        .layui-input-block{
            margin-left: 150px;
        }
        .layui-input-block .layui-icon-date{
            position: absolute;
            top:0;
            left: 10px;
        }
        .layui-input-block .layui-icon-date+input{
            padding-left: 30px;
        }
        .layui-step-content-item{
            background-color: transparent;
        }
        .layui-form-label{
            width: 120px;
        }
    </style>
</head>
<body>
    <div class="layui-fluid">
        <div class="title-row">资材信息导入</div>
        <div class="contentWrap">
            <div class="details-form">
                <form class="layui-form" action="">
                    <div class="layui-form-item">
                        <label class="layui-form-label">资材大类编号<small style="color: red;">*</small></label>
                        <div class="layui-input-block">
                            <select name="domain" id="majorList" lay-filter='majorListFilter' lay-verify="required">
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">资材小类编号<small style="color: red;">*</small></label>
                        <div class="layui-input-block">
                            <select name="system_name" id="systemList" lay-filter='systemListFilter' lay-verify="required">
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">资材名称<small style="color: red;">*</small></label>
                        <div class="layui-input-block">
                            <select name="et_name" id="equipmentList" lay-filter='equipmentListFilter' lay-verify="required">
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                      <label class="layui-form-label">资材编号<small style="color: red;">*</small></label>
                      <div class="layui-input-block">
                        <input type="text" name="et_code"  lay-verify="required"  autocomplete="off" class="layui-input">
                      </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">线路编号<small style="color: red;">*</small></label>
                        <div class="layui-input-block">
                            <select name="line_id" id="lineId" lay-filter='lineIdFilter' lay-verify="required">
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">所属站点<small style="color: red;">*</small></label>
                        <div class="layui-input-block">
                            <select name="station_name" id="etStation" lay-verify="required">
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">规格型号</label>
                        <div class="layui-input-block">
                            <input type="text" name="et_model" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">设备类型<small style="color: red;">*</small></label>
                        <div class="layui-input-block">
                            <input type="text" name="et_type"  lay-verify="required"  autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">设备描述</label>
                        <div class="layui-input-block">
                            <input type="text" name="et_comment" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">维修方式</label>
                        <div class="layui-input-block">
                            <input type="text" name="maintain_way" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">供应商</label>
                        <div class="layui-input-block">
                            <input type="text" name="et_supplier" autocomplete="off" class="layui-input">
                        </div>
                    </div> <div class="layui-form-item">
                    <label class="layui-form-label">制作商</label>
                    <div class="layui-input-block">
                        <input type="text" name="et_producer" autocomplete="off" class="layui-input">
                    </div>
                </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">出厂日期</label>
                        <div class="layui-input-block">
                            <i class="layui-icon layui-icon-date"></i>
                            <input type="text" name="date_of_production" autocomplete="off" class="layui-input" id="productionDate">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">保修期至</label>
                        <div class="layui-input-block">
                            <i class="layui-icon layui-icon-date"></i>
                            <input type="text" name="guarantee_period"  autocomplete="off" class="layui-input" id="guaranteeDate">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">产品序列号</label>
                        <div class="layui-input-block">
                            <input type="text" name="serial_num" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">安装位置</label>
                        <div class="layui-input-block">
                            <input type="text" name="install_location" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">安装日期</label>
                        <div class="layui-input-block">
                            <i class="layui-icon layui-icon-date"></i>
                            <input type="text" name="install_date" autocomplete="off" class="layui-input" id="installDate">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">专业类别编号</label>
                        <div class="layui-input-block">
                            <input type="text" name="professional_id" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">所属单位</label>
                        <div class="layui-input-block">
                            <input type="text" name="owner"  autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">额定电压</label>
                        <div class="layui-input-block">
                            <input type="text" name="voltage"  autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">额定功率</label>
                        <div class="layui-input-block">
                            <input type="text" name="power" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">使用寿命</label>
                        <div class="layui-input-block">
                            <input type="text" name="life"  autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">是否维修计划 </label>
                        <div class="layui-input-block">
                            <select name="is_plan" lay-filter="is_plan">
                                <option value="1">是</option>
                                <option value="0">否</option>
                            </select>

                        </div>
                    </div>
                    <div class="itemShow">
                        <div class="layui-form-item">
                            <label class="layui-form-label">首次维修计划日期</label>
                            <div class="layui-input-block">
                                <i class="layui-icon layui-icon-date"></i>
                                <input type="text" name="maintain_frist_time"   autocomplete="off" class="layui-input" id="firstRepairDate">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">本次维护计划日期</label>
                            <div class="layui-input-block">
                                <i class="layui-icon layui-icon-date"></i>
                                <input type="text" name="maintain_this_time"  autocomplete="off" class="layui-input" id="repairDate">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">下次维护计划日期</label>
                            <div class="layui-input-block">
                                <i class="layui-icon layui-icon-date"></i>
                                <input type="text" name="maintain_next_time"  autocomplete="off" class="layui-input" id="nextRepairDate">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">距离下次维修计划间隔（天）</label>
                            <div class="layui-input-block">
                                <input type="text" name="interval_day" autocomplete="off" class="layui-input" id="interval">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">距离下次维护计划时间（天）</label>
                            <div class="layui-input-block">
                                <input type="text" name="maintain_next_day" autocomplete="off" class="layui-input" id="maintainNext" >
                            </div>
                        </div>
                    </div>
                    <div id="buttonArea"></div>
                    <script type="text/html" id="buttonTpl">
                        {{# if(d.input_button > -1){ }}
                            <button class="layui-btn sureBtn" lay-submit lay-filter="formStep2">确认录入</button>
                        {{# } }}
                    </script>
                </form>
            </div>
            
        </div>
        <!-- <div class="layui-step" id="step">
            <div class="layui-step-content layui-clear">
                <div class="layui-step-content-item" style="background-color: #ECEDF2;margin: 15px auto 30px; padding: 24px;">
                    <div class="layui-row">
                        <div class="layui-col-md11">
                            <input id="searchText" type="text" name="title" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input">
                        </div>
                        <div class="layui-col-md1" style="text-align:right;">
                            <button onclick="searchFMc()" id="searchBtn" class="layui-btn layuiadmin-btn-replys layui-icon layui-icon-search layuiadmin-button-btn" data-type="reload" lay-submit lay-filter="LAY-app-forumreply-search">
                               查询
                            </button>
                        </div>
                    </div>
                    <div class="layui-row layui-col-space10" style="margin-top: 16px" id="searchList">
                        <div class="layui-col-md4 " style="padding-left: 8px; padding-right: 8px;" >
                            <div class="importItem1 importItem"><ul></ul></div> 
                        </div>
                        <div class="layui-col-md4 " style="padding-left: 8px; padding-right: 8px;" >
                            <div class="importItem2 importItem"><ul> </ul></div>   
                        </div>
                        <div class="layui-col-md4 " style="padding-left: 8px; padding-right: 8px;" >
                            <div class="importItem3 importItem"><ul></ul></div> 
                        </div>
                    </div>
                    <div class="layui-step-btn">
                        <div class="layui-input-block">
                            <button type="button" class="layui-btn pre">上一步</button>
                            <button class="layui-btn" lay-submit lay-filter="formStep">
                               下一步
                            </button>
                        </div>
                    </div>
                </div>
                <div class="layui-step-content-item">
                    <div class="details-form">
                        <form class="layui-form" action="">
                            <div class="layui-form-item">
                                <label class="layui-form-label">资材大类编号</label>
                                <div class="layui-input-block">
                                    <select name="domain" id="majorList" lay-filter='majorListFilter'>
                                        <option value="">请选择</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">资材小类编号</label>
                                <div class="layui-input-block">
                                    <select name="system_name" id="systemList" lay-filter='systemListFilter'>
                                        <option value="">请选择</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">资材名称</label>
                                <div class="layui-input-block">
                                    <select name="et_name" id="equipmentList" lay-filter='equipmentListFilter'>
                                        <option value="">请选择</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-form-item">
                              <label class="layui-form-label">资材编号</label>
                              <div class="layui-input-block">
                                <input type="text" name="et_code"  lay-verify="required"  autocomplete="off" class="layui-input">
                              </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">线路编号</label>
                                <div class="layui-input-block">
                                    <select name="line_id" id="lineId" lay-filter='lineIdFilter'>
                                        <option value="">请选择</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">所属站点</label>
                                <div class="layui-input-block">
                                    <select name="station_name" id="etStation">
                                        <option value="">请选择</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">规格型号</label>
                                <div class="layui-input-block">
                                    <input type="text" name="et_model"  lay-verify="required"  autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">设备类型</label>
                                <div class="layui-input-block">
                                    <input type="text" name="et_type"  lay-verify="required"  autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">设备描述</label>
                                <div class="layui-input-block">
                                    <input type="text" name="et_comment"  lay-verify="required"  autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">维修方式</label>
                                <div class="layui-input-block">
                                    <input type="text" name="maintain_way"  lay-verify="required"  autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">供应商</label>
                                <div class="layui-input-block">
                                    <input type="text" name="et_supplier"  lay-verify="required"  autocomplete="off" class="layui-input">
                                </div>
                            </div> <div class="layui-form-item">
                            <label class="layui-form-label">制作商</label>
                            <div class="layui-input-block">
                                <input type="text" name="et_producer" lay-verify="required"  autocomplete="off" class="layui-input">
                            </div>
                        </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">出厂日期</label>
                                <div class="layui-input-block">
                                    <i class="layui-icon layui-icon-date"></i>
                                    <input type="text" name="date_of_production" lay-verify="required"  autocomplete="off" class="layui-input" id="productionDate">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">保修期至</label>
                                <div class="layui-input-block">
                                    <i class="layui-icon layui-icon-date"></i>
                                    <input type="text" name="guarantee_period" lay-verify="required"  autocomplete="off" class="layui-input" id="guaranteeDate">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">产品序列号</label>
                                <div class="layui-input-block">
                                    <input type="text" name="serial_num" required lay-verify="required"  autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">安装位置</label>
                                <div class="layui-input-block">
                                    <input type="text" name="install_location" required lay-verify="required"  autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">安装日期</label>
                                <div class="layui-input-block">
                                    <i class="layui-icon layui-icon-date"></i>
                                    <input type="text" name="install_date" lay-verify="required"  autocomplete="off" class="layui-input" id="installDate">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">专业类别编号</label>
                                <div class="layui-input-block">
                                    <input type="text" name="professional_id" required lay-verify="required"  autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">所属单位</label>
                                <div class="layui-input-block">
                                    <input type="text" name="owner" required lay-verify="required"  autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">额定电压</label>
                                <div class="layui-input-block">
                                    <input type="text" name="voltage" required lay-verify="required"  autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">额定功率</label>
                                <div class="layui-input-block">
                                    <input type="text" name="power" required lay-verify="required"  autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">使用寿命</label>
                                <div class="layui-input-block">
                                    <input type="text" name="life" required lay-verify="required"  autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">是否维修计划 </label>
                                <div class="layui-input-block">
                                    <select name="is_plan" lay-verify="required" lay-filter="is_plan">
                                        <option value="1">是</option>
                                        <option value="0">否</option>
                                    </select>

                                </div>
                            </div>
                            <div class="itemShow">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">首次维修计划日期</label>
                                    <div class="layui-input-block">
                                        <i class="layui-icon layui-icon-date"></i>
                                        <input type="text" name="maintain_frist_time"   autocomplete="off" class="layui-input" id="firstRepairDate">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">本次维护计划日期</label>
                                    <div class="layui-input-block">
                                        <i class="layui-icon layui-icon-date"></i>
                                        <input type="text" name="maintain_this_time"  autocomplete="off" class="layui-input" id="repairDate">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">下次维护计划日期</label>
                                    <div class="layui-input-block">
                                        <i class="layui-icon layui-icon-date"></i>
                                        <input type="text" name="maintain_next_time"  autocomplete="off" class="layui-input" id="nextRepairDate">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">距离下次维修计划间隔（天）</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="interval_day"    autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">距离下次维护计划时间（天）</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="maintain_next_day"    autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-step-btn">
                                <div class="layui-input-block">
                                    <button type="button" class="layui-btn pre">上一步</button>
                                    <button class="layui-btn" lay-submit lay-filter="formStep2">
                                       确认录入
                                    </button>
                                </div>
                            </div>
                          </form>
                    </div>
                </div>
                <div class="layui-step-content-item">
                    <div class="details-form">
                        <form class="layui-form" action="">
                            <div class="layui-form-item">
                                <label class="layui-form-label">资材大类编号:</label>
                                <div class="layui-input-block" id="domain"></div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">资材小类编号:</label>
                                <div class="layui-input-block" id="system_name"></div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">资材名称:</label>
                                <div class="layui-input-block" id="et_name"></div>
                            </div>
                            <div class="layui-step-btn">
                                <div class="layui-input-block">
                                    <button type="button" class="layui-btn pre">上一步</button>
                                    <button class="layui-btn" lay-submit lay-filter="formStep2">
                                        录入成功
                                    </button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div> -->
    </div>
    <script src="../../layuiadmin/layui/layui.js"></script>
    <script>
        layui.config({
            base: '../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
            , my_send: '../myModules/my_send'
        }).use(['index', 'form','upload','laydate','my_send','equipmentInput','currency','laytpl'], function() {
            //     , step = layui.step;
            // step.render({
            //     elem: '.layui-step',
            //     isOpenStepLevel: true,
            //     title: ["选择分类", "填写资材详情", "录入成功"]
            // });
            // $(".pre").on("click", function () {
            //     step.prev('.layui-step');
            // });
            // $(".next").on("click", function () {
            //     step.next('.layui-step');
            // });
        })
    </script>
</body>
</html>